{% extends "layout.html" %}

{% block content %}
    <div class="container-fluid">
    <ol class="breadcrumb">
        <li><a href="/">后台管理</a></li>
        <li><a href="javascript:void(0);" onclick="$('#menu-user').trigger('click');">会员管理</a></li>
        <li class="active">银行信息</li>
    </ol>

    {# 表单 #}
    <form class="form-horizontal" method="post" action="">
        {{ form.csrf_token }}
        {{ form.user_id() }}
        {# 标签导航 #}
        <ul class="nav nav-tabs">  {# 填充整个导航条：nav-justified #}
            <li role="presentation"><a href="{{ url_for('user.auth', user_id=form.user_id.data) }}">登录信息</a></li>
            <li role="presentation" class="active"><a href="{{ url_for('user.bank', user_id=form.user_id.data) }}">银行信息</a></li>
            <li role="presentation"><a href="{{ url_for('user.profile', user_id=form.user_id.data) }}">基本信息</a></li>
        </ul>
        <p></p>
        <div class="form-group{% if form.account_name.errors %} has-error{% endif %}">
            {{ form.account_name.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                {{ form.account_name(class="form-control", placeholder="账户姓名") }}
                {% for error in form.account_name.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.bank_name.errors %} has-error{% endif %}">
            {{ form.bank_name.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                {{ form.bank_name(class="form-control", placeholder="银行名称") }}
                {% for error in form.bank_name.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.bank_address.errors %} has-error{% endif %}">
            {{ form.bank_address.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                {{ form.bank_address(class="form-control", placeholder="支行名称") }}
                {% for error in form.bank_address.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.bank_account.errors %} has-error{% endif %}">
            {{ form.bank_account.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                {{ form.bank_account(class="form-control", placeholder="银行卡号") }}
                {% for error in form.bank_account.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.status_verified.errors %} has-error{% endif %}">
            {{ form.status_verified.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                {{ form.status_verified() }}
                {% for error in form.status_verified.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.create_time.errors %} has-error{% endif %}">
            {{ form.create_time.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                <div class="form-control">
                    {{ moment(form.create_time.data).format('YYYY-MM-DD HH:mm:ss') }}
                </div>
                {% for error in form.create_time.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group{% if form.update_time.errors %} has-error{% endif %}">
            {{ form.update_time.label(class="col-sm-2 control-label") }}
            <div class="col-sm-10">
                <div class="form-control">
                    {{ moment(form.update_time.data).format('YYYY-MM-DD HH:mm:ss') }}
                </div>
                {% for error in form.update_time.errors %}
                    <span class="help-block">{{ error }}</span>
                {% endfor %}
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success btn-load" data-loading-text="保存中">保存</button>
                <button type="reset" class="btn btn-default">重新填写</button>
            </div>
        </div>
    </form>


    </div>

{% endblock %}

{% block extra_js %}

{% endblock %}
